// src/api/report/index.ts

import { http } from '@/utils/http/axios';
import { RequestEnum } from '@/enums/httpEnum';

/**
 * @description: 获取投诉列表
 */
export function getComplaintList(params?: any) {
  return http.request({
    url: '/v1/admin/complains',
    method: RequestEnum.GET,
    params,
  });
}

/**
 * @description: 删除投诉记录（支持批量）
 */
export function deleteComplaint(complainIds: number[]) {
  return http.request({
    url: '/v1/admin/complains',
    method: RequestEnum.DELETE,
    data: { complainIds },
  });
}
